<?PHP

//default values

$e['server']='rtmp://';
$e['artwork']='http://';
$e['hash']=randomchar();
$table='ad_zone';
$id='id';
$catch='name';
$content_msg=$_GET['cmd'];
include 'b/default_process_form.php';
printformheader('Zone',$content_msg);


begin_form($_GET['cmd'],$id);
?>
<h2>Zones</h2>

<?PHP

	p_input('name',$o,$e);
	$enum_data=get_enum($table,'type');
	p_select('type',$enum_data,$e,'0','1',$o);
	p_input('size_x',$o,$e);
	p_input('size_y',$o,$e);

	p_input('hash',$o,$e);

	if($_GET['cmd']=='edit')
	{
		delete_item();
	}
	

	printsubmit("Save");
	end_form($_GET['cmd']);
	printformfooter('View Zones','?q=m/ads/v_zones.php',NULL,NULL,NULL,NULL);




?>